package com.mrtan.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 登录
 * @author 李聪
 * @version 2023/12/6
 */
@Data
public class LoginVO {
    @NotBlank(message = "用户名不能为空")
    @Length(min = 1, max = 10, message = "用户名长度问题")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Length(min = 1, max = 10, message = "密码长度问题")
    private String password;
}
